package com.cms.framework.utils;

import org.jdom2.Document;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;

public class JdomUtil {
	public static String docTosTring(Document doc){
		Format format = Format.getCompactFormat();
		format.setEncoding("UTF-8");
		format.setIndent("    ");
		XMLOutputter outputter = new XMLOutputter(format);
		return outputter.outputString(doc);
	}
}
